package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("device_data")
@ApiModel(description = "设备参数数据表")
public class DeviceData implements Serializable {
    @ApiModelProperty("主键，自增数据ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联设备ID")
    @TableField("device_id")
    private Long deviceId;

    @ApiModelProperty("抄表日期")
    @TableField("reading_date")
    private LocalDate readingDate;

    @ApiModelProperty("水量读数(吨)")
    @TableField("value")
    private BigDecimal value;
}
